package com.ems.system.service;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ems.system.entity.SysRole;
import org.springframework.security.core.GrantedAuthority;

import java.util.List;

public interface SysRoleService extends IService<SysRole> {

    List<SysRole> getRoleList(String blurry);

    void editRole(SysRole role);

    void delRole(Long id);

    JSONArray getAllRoleForXm(Long userId);

    List<SysRole> getRoleByUserId(Long userId);

    List<GrantedAuthority> getRolesByUser(Long id);
}
